package com.socialuni.common.model.base.RO;

import com.socialuni.common.model.base.DO.CommonUserBaseDO;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author qinkaiyuan 查询结果可以没有set和空构造，前台传值可以没有get
 * @date 2019-08-13 23:34
 */
@Data
@NoArgsConstructor
public class CommonUserNoIdRO {
    private String nickname;
    private String avatar;
    private String gender;
    private Integer age;
    private String city;

    public CommonUserNoIdRO(CommonUserBaseDO userDO) {
        this.nickname = userDO.getNickname();
        this.avatar = userDO.getAvatar();
        this.gender = userDO.getGender();
        this.age = userDO.getAge();
        this.city = userDO.getCity();
    }
}
